var selectNode;
var parentNode;
var rootNode;
var categorytree = new eiTreeModel('ZMCN50');
var isAddedRefresh = false;
var treeObj;
//启动事件处理
$(document).ready(function() {
	efregion.show('ef_region_inqu');
	$("#_left").resizable({
		handles: "e",
		 iframeFix: true,  
		 stop: function( event, ui ) {
			 $("#_right").css("margin-left",  $("#_left").outerWidth());
		 }
	});
});
efform_onload = function ()
{
};
function configTree(tree) {
	  tree.emptyNodeAsLeaf = false;
	  tree.activeEmptyJudger = false;
	  tree.topNodeActive = false;
	  tree.nodeInitializer = treeNodeInitializer;
	  tree.initialExpandDepth = 1;
      tree.hideRoot = false;
      treeObj = tree;
      tree._rootNode.active(true);
} 
function treeNodeInitializer(node) {
    node.textClicked = function(){ 
    	selectNode = node;
    	parentNode=node.parent();
        var leaf = node.data().leaf;
        var label = node.data().label;  
        var text = node.data().text;  
        if(leaf=="1")
        {
            ef.get("_right_iframe").src="DispatchAction.do?efFormEname="+Page; 
        }else
        {
        }
    };
} 

function fundiv(currentIndex,index){  
	if(index ==0)
	{  
		var frame = frames[0];
		frame.src = "DispatchAction.do?efFormEname=ZMCN51";
		efform.setStatus(0, "正在加载...");
	}else if(index ==1)
	{ 
		var frame = frames[1];
		frame.src = "DispatchAction.do?efFormEname=ZMCN52";
		efform.setStatus(0, "正在加载...");
	}
	else if(index ==2)
	{ 
		var frame = frames[2];
		frame.src = "DispatchAction.do?efFormEname=ZMCN53";
		efform.setStatus(0, "正在加载...");
	}
	else if(index ==3)
	{ 
		var frame = frames[3];
		frame.src = "DispatchAction.do?efFormEname=ZMCN54";
		efform.setStatus(0, "正在加载...");
	}
	else if(index ==4)
	{ 
		var frame = frames[4];
		frame.src = "DispatchAction.do?efFormEname=ZMCN55";
		efform.setStatus(0, "正在加载...");
	}
	else if(index ==5)
	{
		var frame = frames[5];
		frame.src = "DispatchAction.do?efFormEname=ZMCN56";
		efform.setStatus(0, "正在加载...");
	}
	else if(index ==6)
	{ 
		var frame = frames[6];
		frame.src = "DispatchAction.do?efFormEname=ZMCN57";
		efform.setStatus(0, "正在加载...");
	}
	else if(index ==7)
	{ 
		var frame = frames[6];
		frame.src = "DispatchAction.do?efFormEname=ZMCN58";
		efform.setStatus(0, "正在加载...");
	}
	
} 
